package com.csis.framework.util.jqgrid;

/**
 * Filter jqGrid data columns and id
 * 
 * @author dailey_dai
 * 
 * @param <E>
 *            entity class type
 */
public interface JqGridResponseFilter<E> {

	/**
	 * return entity to array; used in client grid<BR>
	 * filter entity property value, you should override this method;
	 * 
	 * @param e
	 *            Cell<E>
	 * @return Object[]
	 */
	public Object[] getJqGridCell(Cell<E> cell);

	/**
	 * return id for every entity by default first field in class definition.
	 * filter entity id value, you should override this method;
	 * 
	 * @param e
	 *            Cell<E>
	 * @return Object
	 */
	public Object getJqGridCellId(Cell<E> cell);

}
